<template>
	<view class="content">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: 'Hello'
			}
		},
		onLoad() {
			this.getDetail()
		},
		methods: {
			getDetail() {
				this.$post('index/getconfig', {
					key: "commentary",
				}, (res) => {
					this.content = res
					console.log(res)
				})
			}
		}
	}
</script>

<style>
	.content {
		padding: 20rpx 40rpx;
		line-height: 48rpx;
		font-size: 28rpx
	}
	.content>>>img{
		width: 100%!important;
	}
</style>
